﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddUser.aspx.cs" Inherits="Users_AddUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>添加用户信息</title>
    <base target="_self" />
    <script type="text/javascript">
    function MyKeyDown()
    {
        if(event.keyCode==13 && event.srcElement.id!="Button1" && event.srcElement.id!="Button2" )
        {
            event.keyCode=9;
        }
    }
    document.onkeydown=MyKeyDown;
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
 <table>
 <tr>
      <td style="width: 68px">登录名:</td><td style="width: 174px"><asp:TextBox id="tbUserName" runat="server" ></asp:TextBox>
       <asp:RequiredFieldValidator ID="rqLogName" runat="server" ControlToValidate="tbUserName" Display="Static" ErrorMessage="登录名不能为空" SetFocusOnError="True" ValidationGroup="F">*</asp:RequiredFieldValidator></td>
       <td style="width: 68px">真实姓名:</td><td style="width: 176px"><asp:TextBox id="tbTrueName" runat="server" ></asp:TextBox>
           <asp:RequiredFieldValidator ID="rqTrueName" runat="server" ControlToValidate="tbTrueName" Display="Static" ErrorMessage="真实姓名不能为空" SetFocusOnError="True" ValidationGroup="F">*</asp:RequiredFieldValidator>
       </td>
     </tr>
     <tr>
         <td style="width: 68px">
             备注:</td>
         <td style="width: 174px">
               <asp:TextBox id="tbRemark" runat="server" ></asp:TextBox></td>
         <td style="width: 68px">
             </td>
         <td style="width: 176px">
         </td>
     </tr>
     <tr  style="visibility:hidden;">
          <td style="width: 68px" ></td>
          <td style="width: 174px" colspan="3">          </td>
     </tr>
     <tr>
           <td colspan="2"><asp:Button ID="Button2" runat="server" Height="27px" OnClick="Button2_Click"
            Text="保存(&S)" Width="82px" ValidationGroup="F" AccessKey="S" />
        <asp:Button ID="Button1" runat="server" Height="27px" OnClientClick="window.close();"
            Text="关闭(&C)" Width="82px" AccessKey="C" />
               </td>
          </tr>
     </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="False" ValidationGroup="F" />
    </form>
</body>
</html>
